// src/plugins/global.ts

import { App } from 'vue';

const globalPlugin = {
    install(app: App) {
        app.config.globalProperties.$token = localStorage.getItem("token");
        app.config.globalProperties.$sayToken = (e) => {
            localStorage.setItem("token",e)
            app.config.globalProperties.$token = e
            console.log('Hello from Global Method');
        };
    },
};

export default globalPlugin;
